package cn.qayy.dao;

import java.util.List;
import java.util.Map;

import cn.qayy.dto.CargoInvoiceApplyDTO;
import cn.qayy.po.CargoInvoiceApply;
import cn.qayy.service.Uploadable;

public interface CargoInvoiceApplyMapper {
	int deleteByPrimaryKey(Long id);

    int insert(Object record);

    int insertSelective(Object record);

    CargoInvoiceApply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Object record);

    int updateByPrimaryKey(Object record);

    List<Map<String, Object>> selectForDown(CargoInvoiceApplyDTO dto) ;

    int updateByList(List<Uploadable> planlist);

    int insertByList(List<Object> planlist);

    List<CargoInvoiceApply> selectForList(CargoInvoiceApplyDTO dto) ;

	List<? extends String> selectPzKeys();

	CargoInvoiceApply getCargoInvoiceApply(Map<String,Object> params);

	int deleteByList(List list);

	int delete(Object bean);
	
	List<Map<String,String>> selectCargoInvoiceApplyAuto();
	
	List<Map<String, Object>> selectCargoInvoiceApplyByDown(CargoInvoiceApplyDTO dto);

	CargoInvoiceApply selectLastOneByMap(Map<String, Object> params);
	
	List<CargoInvoiceApply> checkRssociation(Map<String, Object> params);
}